<?php defined('SYSPATH') or die('No direct script access.');
class Model_log extends ORM
{
    protected $_db = 'default'; //默认数据库连接

    protected $_table_names_plural = false; //表名复数

    protected $_foreign_key_suffix = 'Id'; //外键连接符

    protected $_created_column = array(
        'column'=>'addTime','format'=>TRUE
    );

/*    protected $_updated_column = array(
        'column'=>'updateTime','format'=>TRUE
    );*/

    protected $_belongs_to = array(
        'user'=>array(
            'model'=>'user',
            'foreign_key'=>'userId'
        )
    );
    protected $_filters = array
    (
            TRUE => array('trim' => array()),
    );
}
